package com.example.beson.androiddemo;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.beson.androiddemo.login.mvp.presenter.MainPresenter;
import com.example.beson.androiddemo.login.mvp.view.MainView;

public class MainFragmentActivity extends AppCompatActivity implements MainView{
    private MainPresenter mainPresenter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_fragment);
        initUI();
    }
    public void initUI() {
        mainPresenter=new MainPresenter(this,this);
        mainPresenter.initFragment();
    }
    @Override
    public void showLoading() {

    }

    @Override
    public void dismissLoading() {

    }

    @Override
    public void showMsg(String msg) {

    }

    @Override
    public Context getContext() {
        return this;
    }
}
